<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/script.jsp" %>
<script type="text/javascript" src='${r"${ctx}"}/assets/js/pinyin_dict_notone.js'></script>
<script type="text/javascript" src='${r"${ctx}"}/assets/js/pinyinUtil.js'></script>
<body>
<script>
jQuery(function($) {
	
})
</script>
<fmt:message key="label.pleaseInput" var="pleaseInput"></fmt:message>
<#list table.columnList as column>
<#if !column.baseField>
<fmt:message key="${ClassName }.${column.javaField }.title" var="${column.javaField }Title"/>
</#if>
</#list>
<custom:message/>
	<form:form action='${r"${ctx}"}/${table.tableJavaName}/popup/save' id="viewForm" name="viewForm" modelAttribute="${table.tableJavaName }" method="post">
		<form:hidden path="id"/>
		<div class="profile-user-info profile-user-info-striped">
		<#list table.columnList as column>
		<#if !column.baseField>
		<div class="profile-info-row">
			<div class="profile-info-name">
			${"$"}{${column.javaField}Title}
			</div>
			<div class="profile-info-value">
				<#if !column.dataDictField && !column.fk>
				<c:out value='${"${"+ table.tableJavaName + "."+column.javaField+"}" }' />		
				</#if>
				<#if column.dataDictField>
				<c:out value='${"${"+ column.javaField + "Map[" + table.tableJavaName + "."+column.javaField+"]}" }'/>
				</#if>
				<#if column.fk>
				<c:out value='${"${"+table.tableJavaName + "."+column.referenceColumn.columnNameJavaField + "." + column.referenceColumn.referencedDisplayName +"}" }'/>
				</#if>
			</div>
		</div>
		</#if>
		
		</#list>
		</div>
		<div class="form-group">	
				<div class="col-md-12 col-xs-12 col-sm-12">
					<a id="cancelBtn" class="btn btn-danger"  onclick="top.Dialog.close()"><fmt:message key="navigation.button.close"/></a>
				</div>
		</div>
		<div id="afterupdate"></div>
	</form:form>
</body>
